package org.dromara.vehicle.modules.vehicle.domain.bo;

import org.dromara.vehicle.modules.vehicle.domain.VehicleRepairRecord;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 车辆维修记录业务对象 vehicle_repair_record
 *
 * @author ckk
 * @date 2025-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = VehicleRepairRecord.class, reverseConvertGenerate = false)
public class VehicleRepairRecordBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 关联车辆基本信息表ID
     */
    @NotNull(message = "关联车辆基本信息表ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long vehicleId;

    /**
     * 维修日期
     */
    private Date repairDate;

    /**
     * 维修厂家
     */
    private String manufacturer;

    /**
     * 维修项目
     */
    private String repairItem;

    /**
     * 维修费用(元)
     */
    private BigDecimal cost;


}
